<template>
  <div>
    <van-cell :title="curr.cate_name" title-class="cell-title" is-link v-for="(curr, index) in file_types" :key="index" @click="getTabList(curr.id, curr.cate_name)"/>
  </div>
</template>

<script>
  export default {
    props: {
      file_types: {
        type: Array,
        required: true,
        default: function() {
          return []
        }
      },
    },
    methods: {
      getTabList(id, fileName) {
        this.$emit('getFileId', {
          id: id,
          fileName: fileName
        })
      }
    },
  }
</script>

<style>
</style>
